package org.jeecg.modules.parameter.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;


/**
 * @author P
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName(value = "sim_platform", schema = "simulator")
@ApiModel(value = "sim_platform", description = "参数-车站-站台")
public class SimPlatform implements Serializable {

    @ApiModelProperty(value = "线路uuid，唯一标识")
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "站厅ID号")
    @TableField("platform_id")
    private String platformId;

    @ApiModelProperty(value = "站厅名称")
    @TableField("platform_name")
    private String platformName;

    @ApiModelProperty(value = "面积，m²")
    @TableField("area")
    private Double area;

    @ApiModelProperty(value = "所属车站id（uuid）")
    @TableField("main_station_id")
    private String mainStationId;

    @ApiModelProperty(value = "运营状态，运营01(默认) ，停运02，限流03")
    @TableField("operating_status")
    private String operatingStatus;

    @ApiModelProperty(value = "上行运营状态，运营01(默认) ，停运02，限流03")
    @TableField("up_operating_status")
    private String upOperatingStatus;

    @ApiModelProperty(value = "下行运营状态，运营01(默认) ，停运02，限流03")
    @TableField("down_operating_status")
    private String downOperatingStatus;

    @ApiModelProperty(value = "上行通行速度，m/s")
    @TableField("up_max_speed")
    private Double upMaxSpeed;

    @ApiModelProperty(value = "下行通行速度，m/s")
    @TableField("down_max_speed")
    private Double downMaxSpeed;


    @JsonFormat(timezone = "GMT+8", pattern = "HH:mm:ss")
    @DateTimeFormat(pattern = "HH:mm:ss")
    @ApiModelProperty(value = "通过时间")
    @TableField(value = "cross_time")
    private String crossTime;
}